<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments::head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>归档</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/my.css">
</head>
<body>
<!--导航-->
<div class="ui m-mobile-wide">
    <nav th:replace="_fragments::menu(4)" class="ui inverted attached segment my-padded-tb-mini m-opacity-mini my-shadow-small">
        <div class="ui container">
            <div class="ui secondary inverted stackable menu">
                <h2 class="ui yellow header item">BLog</h2>
                <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
                <a href="#" class="active m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
                <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
                <div class="right m-item item m-mobile-hide">
                    <div class="ui icon inverted transparent input">
                        <input type="text" placeholder="Search...."/>
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <!--        三条杠-->
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>

</div>

<!--中间内容-->

<div id="waypoint" class="my-padded-tb-big my-container-small">
    <div class="ui container">
        <div class="ui top attached segment">
            <div class="ui top attached two column grid">
                <div class="column">
                    <h3 class="ui teal header">归档</h3>
                </div>
                <div class="right aligned column">
                    共<h3 th:text="${blogCount}" class="ui orange header m-text-thin m-inline-block">24</h3>篇博客
                </div>
            </div>
        </div>
        <th:block th:each="item : ${archiveMap}">
        <h2 class="ui center aligned segment my-padded-tiny header" th:text="${item.key}">2021</h2>
        <div class="ui fluid vertical menu">
            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item" th:each="blog:${item.value}">
                 <span>
                      <i class="mini teal circle icon"></i>
                     <span style="margin-left: 5px" th:text="${blog.title}">国产SOC发展近况</span>
                     <div class="ui teal basic left pointing label"
                          th:text="${#dates.format(blog.updateTime,'MMMdd')}">
                         10月02
                     </div>
                 </span>
                <div class="ui orange vertical aligned basic left pointing label" th:text="${blog.flag}">
                    原创
                </div>

            </a>
        </div>
        </th:block>
    </div>

</div>
<div id="toolbar" class="my-padded m-fixed m-right-bottom" style="display: none!important;">
    <div id="toTop-button" class="back-to-top my-fly-index"></div>
</div>
<!--尾部-->
<footer th:replace="_fragments::footer" class="ui inverted vertical segment my-padded-tb-massive my-opacity">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">

            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">Email：1751316471@qq.com</a>
                    <a href="#" class="item">QQ：1751316471</a>
                </div>
            </div>

            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">QQ</h4>
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wechat.jpg" alt="" class="ui rounded image my-radius"
                             style="width: 120px"/>
                    </div>
                </div>
            </div>

            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">微信</h4>
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/wechat.jpg" alt="" class="ui rounded image my-radius"
                             style="width: 120px"/>
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">客栈信息</h4>
                <div class="ui inverted link list" style="align-content: center;margin-top: 20px">
                    <div class="m-text-thin" style="text-align: left;margin-left: 75px;">
                        文章总数： <h2 class="ui orange header m-inline-block m-margin-top-null" style="font-size:medium;">
                        11</h2> 篇
                    </div>
                    <div class="m-text-thin" style="text-align: left;margin-left: 75px;margin-top: 8px">
                        访问总数： <h2 class="ui orange header m-inline-block m-margin-top-null" style="font-size:medium;">
                        5009</h2> 次
                    </div>
                    <div class="m-text-thin" style="text-align: left;margin-left: 75px;margin-top: 8px">
                        评论总数： <h2 class="ui orange header m-inline-block m-margin-top-null" style="font-size:medium;">
                        6</h2> 条
                    </div>
                    <div class="m-text-thin" style="text-align: left;margin-left: 75px;margin-top: 8px">
                        留言总数： <h2 class="ui orange header m-inline-block m-margin-top-null" style="font-size:medium;">
                        6</h2> 条
                    </div>
                </div>

            </div>

        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-mini my-font-style">Power by DDZZ</p>
    </div>

</footer>
<th:block th:replace="_fragments::script">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</th:block>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide')
    });

    $('#toTop-button').click(function () {
        $(window).scrollTo(0, 500);
    });
    var waypoint = new Waypoint({
        element: document.getElementById('waypoint'),
        handler: function (direction) {
            if (direction == 'down') {
                $('#toolbar').show(500);
            } else {
                $('#toolbar').hide(500)
            }
            //console.log('Scrolled to waypoint!')
        }
    })
</script>

</body>
</html>